﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using facebook;

namespace Veracruz.Facebook.Data
{
    public static class UserObjectType // TODO : Change access modifier to internal
    {
        #region consts

        public const string Name = "user";
        public const string Email = "email";

        #endregion
        #region methods

        internal static void Reset(Session session)
        {
            API l_api = FacebookHelper.CreateAPI(session);
            l_api.data.dropObjectType(Name);
            l_api.data.createObjectType(Name);
            // Type of the new property: 
            //1 for integer 
            //2 for string (max. 255 characters) 
            //3 for text blob (max. 64kb) 
            l_api.data.defineObjectProperty(Name, Email, 2);
        }

        #endregion
    }
}
